/**
 * 
 */
package com.yishuki.bluewhale.db.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author yhzhu
 *
 */
@Entity
@Table(name="TBL_PRODUCTION")
public class Production implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8058887692229622309L;
	@Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name="PRODUCTION_ID")
	private Long productionId;
	
	@Column(name="NAME", unique=true, nullable=false, length=64)
	private String name;
	
	@Column(name="DESCRIPTION", unique=false, nullable=true, length=255)
	private String description;
	
	public Long getProductionId() {
		return productionId;
	}

	public void setProductionId(Long id) {
		this.productionId = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public String toString() {
		return "Production [productionId=" + productionId + ", name=" + name
				+ ", description=" + description + "]";
	}
}
